package com.sub.project.info.vo;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.sub.project.info.prototype.Prototype;
import lombok.Data;
import lombok.ToString;

import java.util.Date;

/**
 *  教育经历
 */
@Data
@ToString
public class EducationSchoolVo implements Prototype {


    /** $column.columnComment */
    private Long id;
    /** 开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date starttime;
    /** 结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date endtime;
    private Long schoolid;
    private String schoolName;
    /*& 学校地址 */
    private String schoolPlace;
    //学校级别
    private String schoolType;
    private String schoolProperties;
    // 专业
    private String major;
    // 专业描述
    private String descpirt;

    @Override
    public Prototype clone() {
        RestVo restVo = new RestVo();
        restVo.setContent(this.schoolProperties);
        restVo.setId(this.id);
        restVo.setName(this.schoolName);
        restVo.setRemarks(this.schoolType);
        restVo.setStartTime(this.starttime);
        restVo.setEndTime(this.endtime);
        return restVo;
    }
}
